#include<stdio.h>
#include<stdlib.h>
int main(void)
{
    int *head = NULL, i, *op_pt;
    head = (int *)malloc(sizeof(int) * 10);   
    if(head == NULL)
    {
        printf("Malloc memory fail");
    }
    else
    {
        op_pt = head;
        for(i = 0; i < 10; i ++)
        {
            head[i] = i;
        }
        op_pt = head;
        for(i = 0; i < 10; i ++)
        {
            printf("number %d is %d\n", i, head[i]);

        }
    }
    free(head);
    return 0;
}